//
//  VideoCell.m
//  Connotation
//
//  Created by qianfeng007 on 15/7/16.
//  Copyright (c) 2015年 轩哥. All rights reserved.
//

#import "VideoCell.h"
#import "AFNetworking.h"
#import "UIImageView+WebCache.h"

@implementation VideoCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)showDataWithModel:(VideoModel *)model
{
    self.model=model;
    self.wbodyLabel.text=model.wbody;
    self.updateTimeLabel.text=[LZXHelper dateStringFromNumberTimer:model.update_time];
    UIImage *image=[[UIImage imageNamed:@"card_bg"] stretchableImageWithLeftCapWidth:5 topCapHeight:5];
    [self.vpicImageView sd_setImageWithURL:[NSURL  URLWithString:model.vpic_small] placeholderImage:image];
    
    [self.likesButton setTitle:[NSString stringWithFormat:@"赞:%ld",model.likes.integerValue] forState:UIControlStateNormal];

}
- (IBAction)likesClick:(UIButton *)sender {
}
@end
